package com.yaj.myfactorysupport.controller;


import com.yaj.myfactorysupport.entity.TLotTrace;
import com.yaj.myfactorysupport.service.TLotTraceService;
import com.yaj.myfactorysupport.util.RespBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wei
 * @since 2021-05-24
 */
@Api(tags = "TLotTraceController")
@RestController
@RequestMapping("/myfactorysupport/t-lot-trace")
public class TLotTraceController {
    @Autowired
    private TLotTraceService tLotTraceService;


    @ApiOperation(value = "插入批号一览")
    @PostMapping(value = "insertTLotTrace")
    public RespBean insertTLotTrace(List<TLotTrace> tLotTraces){
        return tLotTraceService.insertTLotTrace(tLotTraces);
    }


}

